TARGETS = async_test 
all: $(TARGETS)

CPP = g++
CPPFLAGS = -std=c++11 -g 
LIBS = -lpthread

%.o : %.cpp
	$(CPP) $(CPPFLAGS) -c $< -o $@

async_test: async_test.o
	$(CPP) $^ -o async_test $(LIBS)

.PHONY: clean
clean:
	rm -rf *.o $(TARGETS) 